package com.tingyuge.base.design.adapter;

/**
 * @Created by xiaodao
 */
public class Main {

    public static void main(String[] args) {
        Turkey turkey =new WildTurkey();
        //这里我只需要把火鸡丢到适配器里.他就可以变成鸭子.
        Duck duck = new TurkeyAdapter(turkey);
        duck.fly();
        duck.quack();

    }
}
